package com.gengzp.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan({"com.gengzp.common",
        "com.gengzp.system",
        "com.gengzp.permission",
        "com.gengzp.rpc",
        "com.gengzp.api",
        "com.gengzp.mq"})
@MapperScan("com.gengzp.system.mapper")
public class SystemApplication {

    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        SpringApplication.run(SystemApplication.class, args);
        System.out.printf("\n============== [系统服务] system-service 启动成功, 耗时: %sms ==============\n",
                System.currentTimeMillis() - startTime);
    }

}
